package com.kinghood.productcenter.service.base;

import com.kinghood.productcenter.common.model.dao.base.BaseAttributeValueDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kinghood.productcenter.common.model.dto.base.ValueListByAttributeIdDTO;

import java.util.List;

/**
 * <p>
 * 属性可选值 服务类
 * </p>
 *
 * @author KingHood
 * @since 2023-12-20
 */
public interface IBaseAttributeValueService extends IService<BaseAttributeValueDO> {

    /**
     * 根据属性id获取数据值下拉列
     *
     * @param attributeIdList 属性id
     * @param children 属性值级联处理
     * @return 属性值
     * @author zfj
     * @date 2024/1/23
     */
    List<ValueListByAttributeIdDTO> getValueListByAttributeId(List<Long> attributeIdList, boolean children);
}
